div {
    // 上部
    div {
        background-color: aliceblue;
        // 商品图片和直降图标
        div {
            position: relative;
            // 大图
            img {
                width: 100%;
            }
            // 直降
            .depreciate {
                background-color: #f40;
                font-size: 2rem;
                position: absolute;
                bottom: 0;
                right: 0;
            }
        }
        // 等级描述
        .quality {
            color: green;
            width: 100%;
            font-size: 2rem;
            text-indent: 2rem;
        }
        // 价格
        .price {
            background-color: aliceblue;
            margin: 5px auto;
            #currentPrice,
            #originalPrice {
                display: inline-block;
                margin: 0 2rem;
            }
            // 现价字体大小
            #currentPrice {
                font-size: 2rem
            }
            // 原价
            #originalPrice {
                font-size: 1.5rem;
                // 划价斜线
                div {
                    text-indent: 5px;
                    color: #999;
                    background: linear-gradient(5deg, transparent 40.5%, rgb(255, 0, 221) 40.5%, rgb(255, 0, 255) 51.5%, transparent 51.5%);
                }
            }
            // 销量
            .salesVolume {
                display: inline-block;
                position: absolute;
                right: 30px;
                color: #666;
            }
        }
        .f40 {
            color: #f40;
        }
    }
    // 下部内容
    .underAll {
        margin-top: 1rem;
        // 按钮
        .details {
            text-align: center;
            position: relative;
            // 按钮上边的红线
            .sl,
            .sr {
                width: 50%;
                height: .2rem;
                background-color: #f00;
                display: inline-block;
                position: absolute;
            }
            .sl {
                position: absolute;
            }
            .sl {
                position: absolute;
                right: 0;
            }
            // 按钮
            button {
                outline: none;
                background-color: aliceblue;
                border: #999 solid .1px;
                line-height: 4rem;
                font-size: 2rem;
                text-align: center;
                width: 49.9%;
                display: inline-block;
            }
            // 点击效果
            button:active {
                background-color: green;
            }
        }
        // 显示内容
        .body {
            font-size: 1.5rem;
            background-color: #f2f2f2;
            // 详情内容
            // div{
            // }
            ul {
                li {
                    margin-bottom: 20px;
                    padding: 10px 5%;
                    position: relative;
                    background-color: aliceblue;
                    // 头像
                    img {
                        width: 50px;
                        border: 50%;
                    }
                    // 昵称和时间
                    .userId,
                    .time {
                        display: inline-block;
                        margin-left: 10px;
                        font-size: 1.5rem;
                    }
                    .userId {
                        position: relative;
                        bottom: 20px;
                    }
                    .time {
                        position: absolute;
                        right: 10%;
                        top: 20px;
                        color: #999;
                    }
                    // 评价内容
                    .content {
                        background-color: #ddd;
                        min-height: 50px;
                        padding: 5px;
                        text-indent: 2rem;
                    }
                }
            }
        }
    }
    .black {
        margin: 0;
        position: fixed;
        bottom: -1px;
        width: 100%;
        background-color: rgba($color: #000000, $alpha: .5);
        height: 10000px;
        // 加入购物车页面
        .addCart {
            margin: 0;
            width: 100%;
            height: 300px; // 加购高度
            position: absolute;
            bottom: 0; // 加购紧贴底部
            // 购物车里边的图片和直降
            .add-img {
                position: relative;
                display: inline-block;
                bottom: 20px;
                // 图片
                img {
                    width: 10rem;
                }
                // 直降
                .cartDepreciate {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    background-color: #f40;
                }
            }
            // 关闭按钮
            .close {
                width: 2rem;
                position: absolute;
                right: 1rem;
                top: 1rem;
            }
            // 价格
            .cartPrice {
                height: 100px;
                position: absolute;
                left: 10rem;
                top: 1rem;
                #cartCurrentPrice,
                #cartOriginalPrice {
                    display: inline-block;
                    margin: 0 1rem;
                }
                // 现价字体大小
                #cartCurrentPrice {
                    font-size: 1.5rem
                }
                // 原价
                #cartOriginalPrice {
                    font-size: 1rem;
                    // 划价斜线
                    div {
                        text-indent: 5px;
                        color: #999;
                        background: linear-gradient(5deg, transparent 40.5%, rgb(255, 0, 221) 40.5%, rgb(255, 0, 255) 51.5%, transparent 51.5%);
                    }
                }
                // 销量
                p {
                    display: inline-block;
                    color: #666;
                }
                .inventory {
                    position: absolute;
                    right: 6rem;
                    top: 3.5rem;
                }
                .cartSalesVolume {
                    position: absolute;
                    right: -4rem;
                    top: 3.5rem;
                }
            }
            .add-num {
                width: 80%;
                margin: 4rem auto;
                .sub,
                .input,
                .add,
                .units {
                    display: inline-block;
                }
                .sub,
                .add {
                    background-color: #f2f2f2;
                    width: 1rem;
                    font-size: 2.5rem;
                    outline: none;
                    border: none;
                }
                .input {
                    margin: 0 1rem;
                    text-align: center;
                    font-size: 2rem;
                    width: 4rem;
                    outline: none;
                    border: none;
                }
                .units {
                    margin-left: 2rem;
                    font-size: 2rem;
                    font-weight: 500;
                }
                .ok {
                    background-color: #f40;
                    position: fixed;
                    left: 0;
                    bottom: 0;
                    width: 100%;
                    height: 50px;
                    line-height: 50px;
                    text-align: center;
                    color: aliceblue;
                    font-size: 2rem;
                }
            }
        }
    }
}

// 页脚占位
.footer {
    height: 5rem;
    width: 100%;
}
